-- GENERATED SPELL FOR [Withered Warrior] --


function spell0_7327(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_7327', 581, 1)
end

function spell1_7327(pUnit, Event) --@Rushing Charge,Self--
pUnit:FullCastSpellOnTarget(6268,pUnit)
pUnit:RegisterEvent('Sorts_7327', 3000, 1)
end

function Sorts_7327(pUnit, Event)
local choix_sorts_7327 = math.random(0, 1)
if choix_sorts_7327 == 0 then
pUnit:RegisterEvent('spell0_7327', 1, 1)
end
if choix_sorts_7327 == 1 then
pUnit:RegisterEvent('spell1_7327', 1, 1)
end
end

function mob7327_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7327', math.random(1500, 3000), 1)
end

function mob7327_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7327_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7327_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7327, 1, 'mob7327_Action')
RegisterUnitEvent(7327, 2, 'mob7327_Leave')
RegisterUnitEvent(7327, 3, 'mob7327_Kill')
RegisterUnitEvent(7327, 4, 'mob7327_Die')
